package com.tcd.explore.mapper;

import com.tcd.explore.pojo.VerifyLossInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 核损信息表 Mapper 接口
 * </p>
 *
 * @author Jarle
 * @since 2021-05-25
 */
public interface VerifyLossInfoMapper extends BaseMapper<VerifyLossInfo> {
    public Boolean verifysave(VerifyLossInfo verify);

    public List<VerifyLossInfo> verifylist(String uid);

    public List<VerifyLossInfo> verifylistsplice(@Param("page") int page, @Param("pagesize") int pagesize);

    @Update("update verify_loss_info set verifystatus=2, uid=#{uid} where verifyLossId=#{vid}")
    public boolean updateverify(@Param("vid") String vid, @Param("uid") String uid);

}
